package edu.hgnc.methodOverrides.replace;

import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;
import java.util.Arrays;

public class ReplaceDog implements MethodReplacer {
	@Override
	public Object reimplement(Object obj, Method method, Object[] args) {

		System.out.println("Hello , 我是一只金毛~~");
		Arrays.stream(args).forEach(str-> System.out.println("参数："+str));
		return obj;
	}
}
